from selenium import webdriver
from time import sleep
import json


url = 'https://space.bilibili.com/427377158'
driver = webdriver.Chrome()
driver.maximize_window()
driver.get(url)


sleep(60)


with open('cookies.txt','w') as f:
    f.write(json.dumps(driver.get_cookies()))
